package com.itheima.dao;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);

    @Select("Select * from t_permission")
    List<Permission> findall();

    @Select("select permission_id from t_role_permission where role_id=#{id}")
    List<Integer> findPermissionsByRoleID(int id);
}
